import mockjs from 'mockjs';

export default {
  'GET /api/index': {
    id: 1,
    name: '包包',
    age: 18,
  },

  'POST /api/index1': (req, res) => {
    console.log('服务器: ', req, '---'.res);
    res.json({
      id: 2,
      name: '超',
      age: 19,
    });
  },

  '/api/index3': mockjs.mock({
    'list|100': [{ name: '@city', 'value|1-100': 50, 'type|0-2': 1 }],
  }),
};
